package com.kgame5.xtank3d.model.tank.comp.flag.tagpane {

/**
 * @author kangkai
 * 玩家名字
 */
 
import flash.display.*;

import kgame5.k3d.util3d.*;
import kgame5.kgu.*;

public class NameBar {
	private var mc:MovieClip;
	
	public function NameBar(p_mc:MovieClip,p_Name:String=""){
		mc=p_mc;
		mc.cacheAsBitmap=true;
		setName(p_Name);
	}
	public function setName(s:String):void{
		mc.tf.text=s;
		
		//s不为空字符串才显示呢，节约资源
		this.mc.visible=(s!="");
		
	}
	public function setNameColor(color:int):void{
		mc.tf.textColor=color;
	}
}//end of class
}
